App({
  globalData: {
    userInfo: null,
    token: null,
    apiBase: 'http://192.168.235.111:8080/api/v1', // TODO: 替换为实际后端API地址
    imgBase: 'http://192.168.235.111:8080' // 图片服务器基础地址
  },
  onLaunch() {
    // 检查本地token
    const token = wx.getStorageSync('token');
    if (token) {
      this.globalData.token = token;
    }
  }
});
